﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class
{
    class student:person 
    {
        public string Major;
        public string Grade;

        public student() { }

        public void say()
        {
            Console.WriteLine("我的编号是{0}、我的姓名是{1}、我的性别是{2}、我的身份证号是{3}、我的联系方式是{4}、我的专业是{5}、我的年级是{6}",
                this.Id, this.Name, this.Sex, this.cardid, this.Tel, this.Major, this.Grade);
        }
    }
}
